import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import ElementPlus from 'element-plus'
import "element-plus/dist/index.css"
import "@/assets/icon/iconfont.css"
import "./style.css"
import Request from '@/utils/Request'
import Message from '@/utils/Message'
import Confirm from '@/utils/Confirm'
import Table from '@/components/Table.vue'
import Cover from '@/components/Cover.vue'
import Dialog from '@/components/Dialog.vue'
import EditorMarkdown from '@/components/EditorMarkdown.vue'
import EditorHtml from '@/components/EditorHtml.vue'
import CoverUpload from '@/components/CoverUpload.vue'
import Window from '@/components/Window.vue'
const app = createApp(App)
app.config.globalProperties.Request=Request;
app.config.globalProperties.Message=Message;
app.config.globalProperties.Confirm=Confirm;
app.config.globalProperties.globalInfo={
    imageUrl:"/api/file/getImage/"
}
app.use(router);
app.use(ElementPlus);
app.component("Window",Window)
app.component("Table",Table)
app.component("CoverUpload",CoverUpload)
app.mount('#app')
app.component("Cover",Cover);
app.component("EditorHtml",EditorHtml);
app.component("EditorMarkdown",EditorMarkdown);
app.component("Dialog",Dialog)
